<?php /*a:1:{s:73:"D:\web\wwwroot\tp5.1\public/../app/admin\view\game_center\editnotice.html";i:1526088203;}*/ ?>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>修改游戏公告</title>
    <link rel="stylesheet" href="/static/frame/layui/css/layui.css">
    <link rel="stylesheet" href="/static/frame/static/css/style.css">
    <link rel="icon" href="/static/frame/static/image/code.png">
</head>
<body class="body">

<form class="layui-form" action="" method="post" id="addform">



    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">公告版本号</label>
            <div class="layui-input-inline">
                <input type="type" name="version" lay-verify="title" autocomplete="off" placeholder="请输入公告版本号" class="layui-input" value="<?php echo htmlentities($info['version']); ?>">
            </div>
        </div>
    </div>

    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label">描述</label>
        <div class="layui-input-block">
            <textarea placeholder="请输入内容" name="notice" class="layui-textarea"><?php echo htmlentities($info['notice']); ?></textarea>
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit="" lay-filter="demo1">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
	<input type="hidden" name="nid" value="<?php echo htmlentities($nid); ?>">
    <input type="hidden" name="id" value="<?php echo htmlentities($id); ?>">
</form>
<!-- 通用-970*90 -->
<script src="/static/frame/layui/layui.js" charset="utf-8"></script>
<script src="/static/admin/js/comm.js" charset="utf-8"></script>
<script>
        layui.use(['form','admin'], function(){
        var $ = layui.jquery
            ,layer = layui.layer
            ,form = layui.form
            ,admin = layui.admin;
                 //重点处


        //监听指定开关
        form.on('submit(demo1)', function(data){
            admin.action('<?php echo url('admin/GameCenter/editnotice'); ?>',$("#addform").serialize());
            return false;
        });


    });
</script>
</body>
</html>